<template>
  <div id="box">
    <h1>App</h1>
    <button @click="count++">{{ count }}</button>
    <TsCard v-if="count % 2 === 0"></TsCard>
  </div>
</template>
<script setup>
import TsCard from './components/TsCard.vue';

import { onMounted, onUpdated, onUnmounted, ref } from 'vue';


const count = ref(10);

// 挂载后执行
onMounted(() => {
  console.log('onMounted', document.getElementById('box'));
});

// 挂载后执行
onUpdated(() => {
  console.log('onUpdated');
});

</script>